//
//  GoodsModel.h
//  much
//
//  Created by weijunjie on 2019/1/4.
//  Copyright © 2019年 iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class GoodsSpuImages;
@protocol PromoteSpuRspCouponsAndCampaignsModel;

@interface GoodsModel : NSObject
/** 商品id */
@property (nonatomic, copy) NSString *sid;
/** 商品标题 */
@property (nonatomic, copy) NSString *title;
/** 商品子标题 */
@property (nonatomic, copy) NSString *subTitle;
/** 是否为跨境商品 */
@property (nonatomic, copy) NSString *overseas;
/** 售价 */
@property (nonatomic, copy) NSString *sellingPrice;
/** 员工价 */
@property (nonatomic, copy) NSString *employeePrice;
/** 会员价 */
@property (nonatomic, copy) NSString *memberPrice;
/** 商家spu划线价 */
@property (nonatomic, copy) NSString *marketSellingPrice;
/** 规格sku划线价 */
@property (nonatomic, copy) NSString *supplyPrice;

/** 视频链接 */
@property (nonatomic, copy) NSString *videoPath;
/** spu库存 */
@property (nonatomic, assign) NSInteger inventoryCount;
/** 商品类型 */
@property (nonatomic, copy) NSString *type;
/** 主图路径 */
@property (nonatomic, copy) NSString *mainImagePath;
/** 售价折扣 */
@property (nonatomic, copy) NSString *sellingDiscount;
/** 会员折扣 */
@property (nonatomic, copy) NSString *memberDiscount;
/** 员工折扣 */
@property (nonatomic, copy) NSString *employeeDiscount;
/** 分享类型 */
@property (nonatomic, copy) NSString *shareType;
/** 分享类型 */
@property (nonatomic, strong) NSArray <GoodsSpuImages *>*spuImages;

/** 已选skuSid */
@property (nonatomic, copy) NSString *selectedSkuSid;
/** 已选规格名 */
@property (nonatomic, copy) NSString *selectedStandardName;

/** 索引 */
@property (nonatomic, assign) NSInteger displayLines;
/** 最低购买量 */
@property (nonatomic, assign) NSInteger minCount;
/** 商品数量 */
@property (nonatomic, assign) NSInteger number;

#pragma mark - 下单与预下单相关
@property (nonatomic, copy) NSString *amount;
@property (nonatomic, copy) NSString *skuSid;
@property (nonatomic, copy) NSString *spuSid;
@property (nonatomic, copy) NSString *version;
@property (nonatomic, assign) NSInteger minimum;


/** 预下单接口返回图片 */
@property (nonatomic, copy) NSString *imagePath;
/** 预下单接口返回规格 */
@property (nonatomic, copy) NSString *name;
@end
@interface GoodsSpuImages : NSObject
/**
 图片
 */
@property (nonatomic, copy) NSString *imagePath;
@end

@interface PromoteSpuRspCouponsAndCampaignsModel : NSObject

@property (nonatomic, strong) NSArray<PromoteSpuRspCouponsAndCampaignsModel *> *rules;
/** 促销ID */
@property (nonatomic, copy) NSString *promoteSid;
/** 促销标签2 */
@property (nonatomic, copy) NSString *name;
/** 促销标签 */
@property (copy, nonatomic) NSString * promoteTypeName;
/** 促销名称 */
@property (nonatomic, copy) NSString *ruleName;
/** 总折扣金额 */
@property (nonatomic, copy) NSString *discount;
/** 是否免运费 */
@property (nonatomic, copy) NSString *shippingFree;

@end

NS_ASSUME_NONNULL_END
